package com.s64;

import com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator;

import java.math.BigDecimal;

public class Test {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            Long nextId = new DefaultIdentifierGenerator().nextId(null);
            System.out.println("nextId = " + nextId);
        }

        BigDecimal price = new BigDecimal("59.99");
        price = price.multiply(new BigDecimal("0.5"));
        System.out.println("price = " + price);
    }
}
